<?php
class Api_Form_Category extends Zend_Form {
	public function __construct($value = null, $options = null, $img_req = true) {
		parent::__construct ( $options );
		$this->setName ( 'upload' );
		$this->setAttrib ( 'enctype', 'multipart/form-data' );
		
		$this->addElement ( 'text', 'title', array ("required" => true, "label" => _ ( "form title" ) ) )->addElement ( 'textarea', 'descript', array ("required" => true, "label" => _ ( "form description" ) ) )->addElement ( 'file', 'img_src_1', array ("required" => $img_req, "filter" => array (), "label" => _ ( "form image index source" ) ) )->addElement ( 'file', 'img_src_2', array ("required" => $img_req, "label" => _ ( "form image catalog source" ) ) )->addElement ( 'file', 'img_src_3', array ("required" => $img_req, "label" => _ ( "form image prod-list source" ) ) )->addElement ( 'submit', 'submit', array ("required" => true, "label" => _ ( "form submit" ) ) );
	}
}